package com.resys.entity.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Date;
import com.resys.entity.enums.DateTimePatternEnum;
import com.resys.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 
 */
public class Roomstatuslog implements Serializable {


	/**
	 * 
	 */
	private Integer logId;

	/**
	 * 
	 */
	private Integer roomId;

	/**
	 * 0=空闲, 1=锁定, 2=预定, 3=使用, 4=维护
	 */
	private Integer oldStatus;

	/**
	 * 0=空闲, 1=锁定, 2=预定, 3=使用, 4=维护
	 */
	private Integer newStatus;

	/**
	 * 
	 */
	private String changedBy;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date changedTime;


	public void setLogId(Integer logId){
		this.logId = logId;
	}

	public Integer getLogId(){
		return this.logId;
	}

	public void setRoomId(Integer roomId){
		this.roomId = roomId;
	}

	public Integer getRoomId(){
		return this.roomId;
	}

	public void setOldStatus(Integer oldStatus){
		this.oldStatus = oldStatus;
	}

	public Integer getOldStatus(){
		return this.oldStatus;
	}

	public void setNewStatus(Integer newStatus){
		this.newStatus = newStatus;
	}

	public Integer getNewStatus(){
		return this.newStatus;
	}

	public void setChangedBy(String changedBy){
		this.changedBy = changedBy;
	}

	public String getChangedBy(){
		return this.changedBy;
	}

	public void setChangedTime(Date changedTime){
		this.changedTime = changedTime;
	}

	public Date getChangedTime(){
		return this.changedTime;
	}

	@Override
	public String toString (){
		return "logId:"+(logId == null ? "空" : logId)+"，roomId:"+(roomId == null ? "空" : roomId)+"，0=空闲, 1=锁定, 2=预定, 3=使用, 4=维护:"+(oldStatus == null ? "空" : oldStatus)+"，0=空闲, 1=锁定, 2=预定, 3=使用, 4=维护:"+(newStatus == null ? "空" : newStatus)+"，changedBy:"+(changedBy == null ? "空" : changedBy)+"，changedTime:"+(changedTime == null ? "空" : DateUtil.format(changedTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()));
	}
}
